/*
 * Copyright (c) 2019 Nanjing Wind Information Co., Ltd. All Rights Reserved;
 * @Package wind.autotest.pojo
 * @version 1.0.0
 * @Date 2019年4月12日
 * @author jlliu.Farrior@wind.com.cn
 */
package wind.autotest.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * @Description: <类功能描述>
 * @author jlliu.Farrior@wind.com.cn
 * @Date 2019年4月12日 下午1:30:01
 * 
 */
@Entity
@Table(name = "auto_test_field")
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" })
public class TestField {
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id") 
	private int id;
	private String name;
	private String type;
	
	@ManyToOne
    @JoinColumn(name="table_id")
    private TestTable testTable;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public TestTable getTestTable() {
		return testTable;
	}
	public void setTestTable(TestTable testTable) {
		this.testTable = testTable;
	}
	@Override
	public String toString() {
		return "TestField [id=" + id + ", name=" + name + ", type=" + type
				+ ", testTable=" + testTable + "]";
	}
	
}
